package com.zhouyx.eurekafeignclient;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RestController;

import com.zhouyx.eurekafeignapi.service.HelloService;

@EnableDiscoveryClient
@SpringBootApplication
public class EurekaFeignClientApplication {

	@RestController
	class  HelloController implements HelloService{
		@Override
		public String hello(String name) {
			return "hello:" + name;
		}
	}

	public static void main(String[] args) {
		SpringApplication.run(EurekaFeignClientApplication.class, args);
	}
}
